/* 1. CSS初始化：清除所有的边距*/
* {
    margin: 0;
    padding: 0;
}

/* 2. CSS初始化：清除列表样式*/
li {
    list-style: none;
}
button {
    border: none;
}
body {
    background: #f3f5f7;
    /* 之后要删 */
    /* height: 3000px; */
}
a {
    text-decoration: none;
}
/*清除浮动*/
.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}
.clearfix::after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}

/* 3. 确定版心宽度，水平居中 */
.w {
    width: 1200px;
    margin: auto;
}

/*头部start*/
.header {
    height: 42px;
    margin: 30px auto;
}

.logo {
    float: left;
    margin-right: 70px;
}

.nav {
    float: left;
}

.nav ul li {
    float: left;
}

.nav ul li a {
    display: block;
    height: 40px;
    margin-right: 25px;
    padding: 0 10px;
    line-height: 40px;
    color: #050505;
    font-size: 18px;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
}

.search {
    float: left;
    margin-left: 70px;
}

.search input {
    float: left;
    width: 360px;
    height: 40px;
    border: 1px solid #00a4ff;
}
/*行内块有间隙，加浮动即可*/
.search button {
    float: left;
    height: 42px;
    width: 50px;
    background: url("./img/search.png");
}

::-webkit-input-placeholder {
    padding-left: 20px;
}

.user img {
    float: left;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    /* border: 1px solid black; */
    margin: 5px 30px;
    margin-right: 10px;
    text-align: center;
    line-height: 30px;
}
.user p {
    float: left;
    height: 42px;
    font-size: 14px;
    color: #666666;
    line-height: 42px;
}
/*头部end*/
/*banner start*/
.banner {
    height: 420px;
    background: #1c036c url('./img/banner2.png') no-repeat top center;
}
.banner img {
    margin: 0 auto;
}
.subnav {
    float: left;
    width: 150px;
    height: 420px;
    /* 背景半透明 */
    background-color: rgba(0,0,0,0.5);
    padding: 0 20px; 
}
.subnav li {
    /* padding-top: 30px; */
    height: 45px;
    line-height: 45px;
}

.subnav li a {
    color: #ffffff;
    font-size: 14px;
}
.subnav li a:hover {
    color: #00b4ff;
}
.subnav span {
    float: right;
}
.course {
    /* 因为course盒子有了浮动所以不会出现外边距塌陷的问题 */
    float: right;
    width: 228px;
    height: 300px;
    margin-top: 50px;
    background-color: #ffffff;
}
.course-head {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffffff;
} 
.course-body {
    /* 没有宽度的盒子 给padding不会撑开盒子 */
    padding: 0 15px;
    margin-top: 10px;
}

.course-body ul li {
    height: 50px;
    border-bottom: 1px solid #cccccc;
    padding-top: 10px;
}

.course-body ul li h4 {
    font-size: 16px;
    color: #5a5a5a;
    font-weight: normal;
}
.course-body ul li h4 a {
    padding-left: 4px;
    font-size: 14px;
    color: #5a5a5a;
}
.course-body ul li h4 a:hover {
    color:  #00a4ff;
    text-decoration: underline;
}
.course-body ul li p {
    font-size: 12px;
    color: #bdbdbd;
    padding-top: 2px;
}
.all {
    /* a是行元素没有大小 */
    display: block;
    margin-top: 10px;
    height: 38px;
    border: 1px solid #00a4ff;
    line-height: 38px;
    text-align: center;
    color:  #00a4ff;
}
.all:hover {
    background-color:  #00a4ff;
    color: #ffffff;
}
/*banner end*/

/* 精品推荐start */
.goods {
    /* font- color- text- line-都可以继承 */
    height: 60px;
    background-color: #ffffff;
    margin-top: 10px;
    line-height: 60px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.3);
}
.goods h3 {
    float: left;
    color: #00a4ff;
    width: 100px;
    margin-left: 30px;
}
.goods-item {
    float: left;
    color: #bfbfbf;
}
.goods-item a {
    font-size: 16px;
    color: #050505;
    margin: 0 20px;
}
.goods-item a:hover {
    color:  #00a4ff;
}
.goods > a {
    float: right;
    margin-right: 25px;
    color: #00a4ff;
    font-size: 14px;
}
.goods > a:hover {
    text-decoration: underline;
}
/* 精品推荐end */
/* box start */
.box {
    margin-top: 15px;
}
.box-head {
    height: 60px;
    line-height: 60px;
    /* background-color: pink; */
}
.box-head p {
    float: left;
    font-size: 20px;
    color: #494949;
}
.box-head a {
    margin-right: 25px;
    float: right;
    font-size: 12px;
    color: #a5a5a5;
}
.box-head a:hover {
    color: #00a4ff;
}

.box-body {
    /* height: 556px; */
    width: 1215px;
}

.box-body li {
    float: left;
    height: 270px;
    width: 228px;
    background-color: #ffffff;
    margin-right: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.3);
}

.box-body li img {
    width: 100%;
}

.box-body li h4 {
    height: 35px;
    width: 185px;
    margin: 20px 25px;
    font-size: 14px;
}

.box-body li p {
    font-size: 12px;
    margin: 0 25px;
    color: #999999;
}

.box-body p span {
    color: orange;
    margin-right: 10px;
}
/* box end */
/* show box start */
.show-body {
    width: 1215px;
}
.box-head-center {
    margin: 0px 350px;
}
.box-head-center li{
    float: left;
    margin-left: 70px;
    font-size: 16px;
}
.show-body img {
    float: left;
}
.show-body-right {
    width: 960px;
    height: 100px;
    float: right;
}
.show-body-image {
    width: 98%;
}
.show-body-left {
    float: left;
    height: 392px;
    width: 228px;
    background: url('./img/back1.png') no-repeat;
}
.show-body-left h3 {
    font-size: 18px;
    color: #ffffff;
    margin-top: 45px;
    margin-left: 35px;
}
.show-body-left h4 {
    font-size: 18px;
    color: #ffffff;
    margin-top: 20px;
    margin-left: 35px;
}
.show-body li {
    float: left;
    height: 270px;
    width: 225px;
    margin-top: 22px;
    background-color: #ffffff;
    box-shadow: 0 2px 2px rgba(0,0,0,0.3);
    margin-right: 15px;
}
.show-body li img {
    width: 100%;
}

.show-body li h4 {
    height: 35px;
    width: 185px;
    margin-top: 200px;
    margin: 200px 45px 0 45px;
    font-size: 14px;
}

.show-body li p {
    font-size: 12px;
    margin: 0px 45px;
    color: #999999;
}

.show-body p span {
    color: orange;
}

.show-body-left p {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-left: 30px;
}

.show-body-left h4 + p {
    margin-top: 20px;
}
/* show box end */

/* footer start */
.footer {
    height: 300px;
    background-color: #ffffff;
    margin-top: 40px;
    padding-top: 30px;
}
.copyright {
    float: left;
}
.copyright p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}
.copyright a {
    display: block;
    width: 118px;
    height: 34px;
    border: 1px solid #00a4ff;
    line-height: 34px;
    text-align: center;
    color: #00a4ff;
}
.copyright a:hover {
    background-color: #00a4ff;
    color: #ffffff;
}
.links {
    float: right;
    margin-left: 100px;
    color: #333333
}
.links dt {
    font-size: 16px;
    margin-bottom: 10px;
} 
.links dd {
    font-size: 12px;
    margin-bottom: 5px;
}
/* footer end */